package com.hooper.hosp.service;

import com.hooper.hosp.model.hosp.Department;
import com.hooper.hosp.vo.DepartmentVo;
import com.hooper.hosp.vo.hosp.DepartmentQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/09/28/15:07
 */
public interface DepartmentService {

    boolean saveOrUpdate(Map<String, Object> map);

    Page<Department> pageDepartment(int page, int limit, DepartmentQueryVo departmentVo);

    void removeByHoscode(String hoscode, String depcode);

    List<DepartmentVo> getDepartmentListByHoscode(String hoscode);

    Department getByDepcode(String depcode);
}
